package org.jeecg.modules.rental.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.rental.entity.RentalFaultType;

import java.util.List;
import java.util.Set;

/**
 * @Description: rental_fault_type
 * @Author: jeecg-boot
 * @Date:   2024-07-23
 * @Version: V1.0
 */
public interface RentalFaultTypeMapper extends BaseMapper<RentalFaultType> {

    IPage<RentalFaultType> selectJoinPage(@Param("page") Page page, @Param("param") RentalFaultType entity);

    List<RentalFaultType> selectByCode(@Param("sysOrgCode") String orgCode, @Param("codes") Set<String> faultCodeList);

    RentalFaultType selectOneByCode(@Param("sysOrgCode") String orgCode, @Param("code") String faultCode);
}
